<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title><{$env.conf.desktop.background.title}></title>
<link rel="shortcut icon" href="../favicon.gif" type="image/gif" />
<link href="<{$env.app.res_url}>/css/framework.css" rel="stylesheet" type="text/css"  />
<link href="<{$env.app.res_url}>/css/default/login.css" rel="stylesheet" type="text/css"  />
</head>
<body>
	<{$top_shopex_cn_call}>
<div class="signup-contant clearfix">
  <div class="signup-middle">
    <div class="signup-contant-main ">
      <div class="login_title logo clearfix">
        <h3><{if $env.conf.desktop.sale_id != 'shopex.erp'}>商派ONex 订单管理中心<{else}><{$env.conf.desktop.logo}><{/if}><!--<{$env.conf.desktop.logo}><span><{$env.conf.desktop.logo_desc}></span>--></h3>
      </div>
      <div class="signup">
        <div class="signip-main">
          <div class="ifram">
            <div class="publicize" id="publicize">
		<{if $env.conf.desktop.sale_id != 'shopex.erp'}>
		<img src="<{$env.app.res_url}>/commerce.png" width="232" height="212" style="margin-left:60px;">
		<{else}>
		<{assign var=mapp value=$env.conf.base.system.main_app}>
		<iframe style="visibility:hidden;display:block;" name="publicize-iframe" frameborder="0" scrolling="no" height="100%" width="100%" allowTransparency="true"   src="http://top.shopex.cn/ecos/welcome.php?cross_call_url=<{$cross_call_url}>&f=<{$mapp.app_id}>&pid=<{if $env.conf.desktop.product_id}><{$env.conf.desktop.product_id}><{else}><{$product_key}><{/if}>" > 
		</iframe>
		<{/if}>
            </div>
          </div>
          <div class="window">
            <div class="window-tab">
              <ul>
                <{foreach from=$passports item=item}>
	                <li class="window-tab-current" value="<{$item.value}>" >
	                  <div class="window-tabcurrent-left"></div>
	                  <div class="window-tabcurrent-mid"><{$item.name}></div>
	                  <div class="window-tabcurrent-right"></div>
	                </li>
                <{/foreach}>
              </ul>
            </div>
            <{foreach from=$passports item=item}>
                <div class="window-main" id = "<{$item.value}>_part"> 
                    <div class="passport-bd"><{$item.html}></div>
                </div>
            <{/foreach}>
          </div>
        </div>
      </div>
    </div>
  </div>
  <div class="copyright">
    <div class="copyright-main">
		<div class="fav">
			<div class="clearfix" style="text-align:right;">
			<div class="span-auto act addfav" id="addfav">
				<a href="javascript:void(addFavorite());"><{t}>加入收藏<{/t}></a>
			 </div>
			<div class="span-auto act createshortcut" id="createshortcut"><a href="javascript:void(createShortcut());"><{t}>生成快捷方式<{/t}></a></div>
			</div>
		</div>

   <!-- &copy; ShopEx Inc. -->

	</div>
  </div>

</div>

<{if $desktop_login_verify}><{$desktop_login_verify}><{/if}>

<script>
void function(){
	
		var sURL = location.href;
		var sTitle = document.title;
		addFavorite = function() {
			try {
				window.external.addFavorite(sURL, sTitle);
			} catch (e) {
				try {
					window.sidebar.addPanel(sTitle, sURL, "");
				} catch (e) {
					var c = "ctrl";
					if (navigator.platform.match(/mac/i)) {
						c = "command"
					}
					alert("<{t}>请使用键盘上<{/t}>\n\n" + c
							+ "+D\n\n<{t}>进行收藏操作。<{/t}>");
				}
			}
			return false;
		}
		createShortcut = function() {

			var sname = document.title.replace(/\s/ig, '');
			var surl = location.href;
			document.createshortcuts.furl.value = surl;
			document.createshortcuts.fname.value = sname;
			document.createshortcuts.submit();
		}
		
	}();

</script>
<form action="index.php?app=desktop&ctl=createshortcuts" name="createshortcuts" target="_blank" method="post">
	<input type="hidden" name="furl" value=""/>
	<input type="hidden" name="fname" value=""/>
</form>
</body>
</html>
